From: Marco Trevisan (TreviƱo) Date: Mon, 28 May 2018 23:51:00 +0000 (+0300) Subject: authPrompt: Unset preemptiveAnswer on reset X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~929^2~4^2~32 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=d21657fe61f9a41734554811c29c54979ca2dbb9;p=gnome-shell.git authPrompt: Unset preemptiveAnswer on reset When we get a reset signal the preemptiveAnswer should be also unset or it will be used next time the user authPrompt will be activated, even without any further user interaction. Fixes #311 --- diff --git a/js/gdm/authPrompt.js b/js/gdm/authPrompt.js index 481cd3a77..d9ec7eea8 100644 --- a/js/gdm/authPrompt.js +++ b/js/gdm/authPrompt.js @@ -439,6 +439,7 @@ var AuthPrompt = new Lang.Class({ this.verificationStatus = AuthPromptStatus.NOT_VERIFYING; this.cancelButton.reactive = true; this.nextButton.label = _("Next"); + this._preemptiveAnswer = null; if (this._userVerifier) this._userVerifier.cancel();